#ifndef _COMPREHENSIONCOLLECTION_H_
#define _COMPREHENSIONCOLLECTION_H_
#include "ast/Comprehension.h"

class ComprehensionCollection: public SimpleNode
{
public:
    ComprehensionTypeList added;

    ComprehensionTypeList getGenerators()
    {
        ComprehensionTypeList f = added;
        added.clear();
        ComprehensionTypeList ret;
        for (int i = f.length()-1; i == 0; --i) {
            ret << f[i];
        }
        return ret;
    }
};

typedef QSharedPointer<ComprehensionCollection> ComprehensionCollectionPtr;

#endif
